<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSysConfig extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sys_configs', function (Blueprint $table) {
            $table->increments('id');
            $table->string("varname",255)->nullable();
            $table->string("info",255)->nullable();
            $table->string("type",255)->nullable();
            $table->string("value",255)->nullable();
            $table->timestamps();
        });
        DB::statement("ALTER TABLE `sys_configs` comment'系统基本信息表'"); // 表注释
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
